package com.lida.logging.controller;

import com.lida.logging.LoggingApp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * author: lida
 * create time: 2020-09-03 11:41
 * description:
 */
@RestController
public class LoggingController {

    private Logger logger = LoggerFactory.getLogger(LoggingApp.class);


    @RequestMapping("log")
    public String pringLog() {
        logger.trace("trace");
        logger.debug("debug");
        logger.info("info");
        logger.warn("warn");
        logger.error("error");
        return "测试日志";
    }
}
